﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace eLoan.Models
{
    public class PrintChequeModel
    {
        public List<PrintChequeQueryModel> PrintChequeItems { get; set; }

        [Display(Name = "Select a branch")]
        public IEnumerable<SelectListItem> Branches { get; set; }

        public string SelectedBranchCode { get; set; }

        public string SearchText { get; set; }

        public IEnumerable<SelectListItem> Banks { get; set; }
    }

    public class PrintChequeQueryModel
    {
        [Display(Name = "Document No")]
        public string DocumentNo { get; set; }
        
        [Display(Name = "Borrower")]
        public string BorrowerName { get; set; }

        [Display(Name = "Agent")]
        public string AgentName { get; set; }

        [Display(Name = "Loan Amount")]
        public decimal LoanAmount { get; set; }

        [Display(Name = "Loan Interest %")]
        public decimal LoanInterest { get; set; }

        [Display(Name = "Loan Interest Amount")]
        public decimal LoanInterestAmount { get; set; }

        [Display(Name = "Receivable")]
        public decimal Receivable { get; set; }

        [Display(Name = "Total Deduction")]
        public decimal TotalDeduction { get; set; }

        [Display(Name = "Bank")]
        public int BankID { get; set; }

        [Display(Name = "Cheque No")]
        public string ChequeNo { get; set; }

        [Display(Name = "ChequeAmount")]
        public decimal ChequeAmount { get; set; }

        public bool IsSelected { get; set; }

    }
}